
package se.sll.service.catalogue.capacity.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;


/**
 * A single Care Unit reference
 * 
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "hsaID",
    "product"
})
public class CareUnitRefList {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("hsaID")
    @NotNull
    private String hsaID;
    /**
     * a collection of product references
     * 
     */
    @JsonProperty("product")
    @Valid
    private List<Product> product = new ArrayList<Product>();
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The hsaID
     */
    @JsonProperty("hsaID")
    public String getHsaID() {
        return hsaID;
    }

    /**
     * 
     * (Required)
     * 
     * @param hsaID
     *     The hsaID
     */
    @JsonProperty("hsaID")
    public void setHsaID(String hsaID) {
        this.hsaID = hsaID;
    }

    public CareUnitRefList withHsaID(String hsaID) {
        this.hsaID = hsaID;
        return this;
    }

    /**
     * a collection of product references
     * 
     * @return
     *     The product
     */
    @JsonProperty("product")
    public List<Product> getProduct() {
        return product;
    }

    /**
     * a collection of product references
     * 
     * @param product
     *     The product
     */
    @JsonProperty("product")
    public void setProduct(List<Product> product) {
        this.product = product;
    }

    public CareUnitRefList withProduct(List<Product> product) {
        this.product = product;
        return this;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public CareUnitRefList withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}
